package com.lovo.Game;

import java.util.InputMismatchException;
import java.util.Scanner;

public class People extends ChuQuan {

    @Override
    public void generateNumbers() {
        Scanner sc = new Scanner(System.in);

        try {
            setNumbers(sc.nextInt());
        } catch (InputMismatchException e) {
            System.out.println("!!!!!输入有误,重新输入！！！！");
            generateNumbers();
        }
    }
    public String toString() {
        if (getNumbers() == 0) {
            return "玩家出拳头。";
        } else if (getNumbers() == 1) {
            return "玩家出剪刀。";
        } else {
            return "玩家出布。";
        }
    }
}
